ident = '$Id: davs.py 104 2006-05-25 22:06:43Z ahmad $'

'''The DAV UI components'''
import sys, wx, rex, common, images, re, base
from xml.sax 	import saxutils
from xml.dom	import minidom

CG_LIST = 100
RB_SUBS = 101
RB_LIST = 102
CB_ARCHIVE=103
ID_PUBLISH=104
ID_OBJECT_PASTE=105
ID_OBJECT_REMOVE=106

class code( base.editor ):
	def __init__( self, davCon, account, fil, treeitem ):
		#self.icon_name = parent.icon_name
		self.davCon = davCon
		base.editor.__init__( self, account, fil, treeitem )
		self.load_rex_object()

	def load_rex_object( self ):
		if self.rex_object is None: return
		cur = wx.BusyCursor()
		try:
			base.editor.load_rex_object( self )
		except:
			common.show_error( "Failed to load from rex object" )
		del cur

class html( code ):
	def __init__( self, davCon, account, fil, treeitem ):
		code.__init__( self, davCon, account, fil, treeitem )
